import request from '@/utils/request'
var path = "/chats"
export default {


  /* 获取好友聊天记录 */
  getcharRoom(adduserId,userId){
    return request({
      url:`${path}/strorage/${userId}/${adduserId}`,
      method:"get"
   })
  },


  /* 保存聊天记录 */
  savechatRoom(data){
    return request({
      url:`${path}/save`,
      method:"post",
      data
   })
  }
}